#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include"ebola.h"
#include"personnel.h"
#include"patient1.h"
#include"menu_principal.h"
#include"autoadmin1.h"


int main()
{


 int test;
 int a;
 int choix;
 int t=0;
 Personnel P;


 


do{
     
  printf("\n1:pour demarrer le programme\n");
  printf("\n2:changer mot de passe\n");
  printf("\n\n3:quitter\n");
  printf("\nvotre choix\n");
  scanf("%d",&choix);
  switch(choix)
  {
  
  
  case 1:
  {
     system("clear");
     do 
     {
     a=rechercher_id_mdp("fper");
     }while ( a!=1);
     
    system("clear");
    do
	{
	 printf("***********************************************\n");
	 printf("**                                           **\n");
	 printf("******************hello************************\n");
	 printf("**                                           **\n");
	 printf("**                                           **\n");
	 printf("***********************************************\n");
	 printf("\n 1:menu_principal \n");
	 printf("\n 0:quitter \n");
	 scanf("%d",&test);
	 switch (test)
	{
	case 1:{system("clear");
		menu_principal(); 
        	break;}

	case 0:{system("clear");
	        break;}

	default:{system("clear");
		printf("Mauvais choix\n");
		break;}
	}
	}while(test !=0);
  }  
   	break;
  
  case 2:
        system("clear");
  	changer_mot_de_passe(P);
        printf("\nMot de passe changé\n");
        break;
  
  case 3:
        system("clear");
        break;
        
  default:
    system("clear");
    printf("\nChoix invalide");
    break;
  }
  }
  while(choix!=3);

return(0);
}


